package com.woniu.humanresource.dao;

import com.woniu.humanresource.entity.CompensationScheme;
import com.woniu.humanresource.entity.CorporateBenefits;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.Mapping;

import java.util.List;

//企业福利表
public interface CorporateBenefitsDao {
    //   添加福利
    void insertCorporateBenefits(CorporateBenefits corporateBenefits);

    //查询福利
    List<CorporateBenefits> selectCorporateBenefits(
            @Param("corporatebenefits")CorporateBenefits corporateBenefits,
            @Param("pageIndex")int pageIndex,
            @Param("pageSize")int pageSize);
    //删除福利
    void deleteCorporateBenefits(int id);

    //    查询福利数量
    int selectCorporateBenefitsCount(@Param("corporatebenefits") CorporateBenefits corporateBenefits);

    //修改福利
    void updateCorporateBenefits(CorporateBenefits corporateBenefits);
}